package homework5;

public class Chapter01 {
    public static void main(String[] args) {
        int arr[]=new int[31];
        int b=1;
        for (int i=1;i<arr.length;i++){
            b*=2;
            arr[i]=b;
            //System.out.println(arr[i]);
        }
        arr[0]=1;
        for (int i:arr)
            System.out.println("依次输出"+i);
    }
}
